package com.stream.service;

import com.stream.model.entity.ScheduleJobLogEntity;

import java.util.List;
import java.util.Map;

/**
 * 定时任务日志
 * Created by yebaokang on 2017/6/30.
 */
public interface ScheduleJobLogService {

    /**
     * 根据任务Id，查询定时任务日志
     * @param jobId
     * @return
     */
    ScheduleJobLogEntity queryObject(Long jobId);

    /**
     * 查询定时任务日志列表
     * @param map
     * @return
     */
    List<ScheduleJobLogEntity> queryList(Map<String, Object> map);

    /**
     * 查询总数
     * @param map
     * @return
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 保存定时任务日志
     * @param jobLog
     */
    void save(ScheduleJobLogEntity jobLog);
}
